package cn.kgc.service;

import cn.kgc.bean.pojo.CDepartment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 法院机构管理
 * 部门管理
 */
public interface DepartmentManagerService {

    //查
    List<CDepartment> selectAll();
    //增
    boolean addDepartment(@Param("cDepartment") CDepartment cDepartment);
    //删
    boolean deleteDepartmentById(long id);
    //改：根据id查询返回数据进行修改
    CDepartment selectAllById(long id);
    boolean updateDepartment(@Param("cDepartment") CDepartment cDepartment);
    //模糊查询
    List<CDepartment> selectByName(String name);
}
